var mimeTeXInputMethod = IBImgInputMethod.extend({
	constructor: function()
	{
	},
	IMName: function()
	{
		return 'mimeTeX';
	},
	GetLanguage: function()
	{
		return 'math';
	},
	SuggestionType: function()
	{
		return 'TeX';
	},
	isKeyValid: function(key,m)
	{
		if((97 <= key && key <= 122) || (65 <= key && key <= 90) || (48 <= key && key <= 57) || key == 92) return true;
		else return false;
	},
	GetImageUrl: function(buf)
	{
		return 'http://ajaxime.com/cgi-bin/mimetex.cgi?' + encodeURI(buf);
	}
});


